export default {
  setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'], // 设置文件
  testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
  moduleDirectories: ['node_modules', 'app'],
  testTimeout: 60000,
  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
  moduleNameMapper: {
    '^app(.*)$': '<rootDir>/app$1',
    '^tests(.*)$': '<rootDir>/tests$1',
  },
}
